<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>疫情实时数据</title>
    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">疫情实时数据</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">疫情实时数据</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="/data">首页</a></li>
                <li><a href="https://gitee.com/Zeight/spring-boot-test-three">Gitee</a></li>
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</nav>


<div class="container theme-showcase" role="main">

    <br><br><br><br><br>
    <!--巨幕-->
    <div class="jumbotron">
        <h1>疫情实时数据</h1>
        <p>This is a spring boot test for DGUT </p>
    </div>

    <div class="row">
        <form class="navbar-form navbar-left" action="/search" method="get">
            <div class="form-group">
                <label>
                    <input type="text" class="form-control" name="search" placeholder="Search">
                </label>
            </div>
            <button type="submit" class="btn btn-default">Submit</button>
        </form>
    </div>
    <!--数据-->
    <div class="page-header">
        <h1>疫情数据</h1>
    </div>
    <div class="row">
        <div style="overflow:auto; height: 300px" th:if="${!region.isEmpty()}">
            <table class="table">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>Province Name</th>
                    <th>Country Name</th>
                    <th th:each="date , iterStat : ${region.get(0).data.keySet()}">
                            <p th:text="${date}"></p>
                    </th>
                </tr>
                </thead>
                <tbody>
                <tr th:each="data , iterStat : ${region}">
                    <td th:text="${data.id}"></td>
                    <td th:text="${data.provinceName}"></td>
                    <td th:text="${data.countryName}"></td>
                    <td th:each="date , i : ${data.data.keySet()}">
                        <p th:text="${data.data.get(date)}"></p>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

</div>


<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
</body>
</html>